package nc.ui.bd.mes.flsl.handler;

import nc.ui.mmf.framework.util.BillCardPanelUtil;
import nc.ui.pub.beans.UIRefPane;
import nc.ui.pubapp.uif2app.event.IAppEventHandler;
import nc.ui.pubapp.uif2app.event.card.CardBodyBeforeEditEvent;
import nc.ui.pubapp.uif2app.event.list.ListBodyBeforeEditEvent;

public class LcwhBeforeEditHandler implements IAppEventHandler<ListBodyBeforeEditEvent>{

	@Override
	public void handleAppEvent(ListBodyBeforeEditEvent e) {
		if(e.getKey().equals("pk_lcwh")){
	        UIRefPane refPane = (UIRefPane) e.getBillListPanel().getBodyItem("pk_lcwh").getComponent();
	        String orgcode = (String)e.getBillListPanel().getBodyBillModel("flresult").getValueAt(e.getRow(), "pk_org");
	        refPane.setPk_org("");
	        e.setReturnValue(Boolean.TRUE);
		}
	}

}
